<!--{if empty($_TPL['getmore'])}-->	
	<!--{eval $_TPL['titles'] = array('首页');}-->
	<!--{template header}-->
	<div class="h_10"></div>
	<!-- container begin -->
	<div class="container clear"  > 
	  <div class="h_0"></div>
	  <!-- left container begin -->
	  <div class="home_content" >
		<!--{if $space['uid'] && $space[self]}-->
			<div class="home_send_mes clear">
			  <div class="user_head">
				<!--{avatar($_SGLOBAL[supe_uid],middle)}-->
			  </div>
			  <div class="write_mes">
				<!--{template space_status}-->
			  </div>
			</div>
			<!-- 热门日志 -->
			<div class="home_picshow">
				<h3><a href="space.php?do=blog" title="" class="link_more">更多</a>热门日志</h3>
				<div class="picshow" style="z-index:1">
					<div id="kly1" class="klypiclist">
						<div id="kly" class="piclist clear" style="width:<!--{eval echo count($blogpic)*204;}-->px;">
						<!--{loop $blogpic $key $values}-->
							<dl>
								<dt><a href="space.php?uid=$values[uid]&do=blog&id=$values[blogid]" title=""><img src="$values[pic]" alt="图片说明" /></a></dt>
								<dd><a href="space.php?uid=$values[uid]&do=blog&id=$values[blogid]" title="">$values[subject] </a></dd>
							</dl>
						<!--{/loop}-->
						</div>
					</div>
					<a href="javascript:;" onclick="turnleft()" title="" class="picshow_next"></a>
				</div>
			</div>
			<script type="text/javascript">
				function turnleft(){
					var left = $('kly1').scrollLeft;
					if(left+620 > $('kly').style.width.split('px')[0]){
						jQuery('#kly1').animate({scrollLeft : '0' } , 300);
					}else{
						jQuery('#kly1').animate({scrollLeft : '+=408' } , 300);
					}
				}
			</script>
			<!-- 动态显示 -->
			<div class="home_dynamic">
			  <script src="source/script_attention.js" type="text/javascript" language="javascript"></script>
			  <div class="list-tit">
				<ul>
					<!--{if $space[friendnum]}--><li$actives[we]><a href="space.php?do=home&view=we"><span>好友动态</span></a></li><!--{/if}-->
					<li$actives[business]><a href="space.php?do=home&view=business"><span>交易动态</span></a></li>
					<li$actives[all] ><a href="space.php?do=home&view=all"><span>全站动态</span></a></li>
					<li$actives[company]><a href="space.php?do=home&view=company"><span>公司动态</span></a></li>
					<li$actives[boat]><a href="space.php?do=home&view=boat"><span>船舶动态</span></a></li>
					<li$actives[attention]><a href="space.php?do=home&view=attention"><span>关注的TA</span></a></li>
				</ul>
			  </div>
		<!--{elseif $space[uid]}-->
			<!--{template space_menu}-->
		<!--{/if}-->
			 <div id="feed_div">
		<!--{/if}-->
				<!--{if $list['kly']}-->
					<ul class="home_dy_li" id="home_dy_li">
					<!--{loop $list['kly'] $value}-->
						<!--{template space_feed_li}-->
					<!--{/loop}-->
					</ul>
				<!--{else}-->
					<ul>
						<li>没有相关动态</li>
					</ul>
				<!--{/if}-->
				<!--{if $filtercount}-->
					<div class="notice" id="feed_filter_notice_{$start}">
						根据您的<a href="cp.php?ac=privacy&op=view">筛选设置</a>，有 $filtercount 条动态被屏蔽 (<a href="javascript:;" onclick="filter_more($start);" id="a_feed_privacy_more">点击查看</a>)
					</div>
					<div id="feed_filter_div_{$start}" class="enter-content" style="display:none;">
						<h4 class="feedtime">以下是被屏蔽的动态</h4>
						<ul>
						<!--{loop $filter_list $value}-->
						<!--{eval $value = mkfeed($value);}-->
						<!--{template space_feed_li}-->
						<!--{/loop}-->
						<li><a href="javascript:;" onclick="filter_more($start);">&laquo; 收起</a></li>
						</ul>
					</div>
				<!--{/if}-->
		<!--{if empty($_TPL['getmore'])}-->
			</div>
			<!--{if $count==$perpage}-->
			<div class="tab" id="dy_tab">
				<div class="tab_cons">
					<div class="tab_con con_selected">
						<div class="dy_more">
							<div class="dy_more_c">
								<div class="dy_more_l"><a href="javascript:;" onclick="feed_more();" id="a_feed_more">显示更多....</a> </div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--{/if}-->
			<div id="ajax_wait"></div>
			<script type="text/javascript">
				var next = $start;
				function feed_more() {
					var x = new Ajax('XML', 'ajax_wait');
					var html = '';
					next = next + $perpage;
					x.get('cp.php?ac=feed&op=get&start='+next+'&view=$_GET[view]&appid=$_GET[appid]&icon=$_GET[icon]&filter=$_GET[filter]&day=$_GET[day]', function(s){
						//html = '<h4 class="feedtime">以下是新读取的动态</h4>' + s;
						$('feed_div').innerHTML += s;
					});
				}

				function filter_more(id) {
					if($('feed_filter_div_'+id).style.display == '') {
						$('feed_filter_div_'+id).style.display = 'none';
						$('feed_filter_notice_'+id).style.display = '';
					} else {
						$('feed_filter_div_'+id).style.display = '';
						$('feed_filter_notice_'+id).style.display = 'none';
					}
				}

				function close_feedbox() {
					var x = new Ajax();
					x.get('cp.php?ac=common&op=closefeedbox', function(s){
						$('feed_box').style.display = 'none';
					});
				}

				var elems = selector('li[class~=magicthunder]', $('feed_div')); 
				for(var i=0; i<elems.length; i++){
					magicColor(elems[i]); 
				}
			</script>
	</div>
</div>
		
	  <div id="c05" class="I-list" style="display:none"></div>
	  <!-- right container begin -->
	  <div class="home_side">

		<!-- 欢迎新成员 -->
		<!--{if $newspacelist}-->
		<div class="box_b ">
		  <div class="box-outer">
			<div class="title">
			  <h4 id="a">热烈欢迎新成员</h4>
			  <span> <a href="javascript:;" class="kly_hide"></a> </span>
			</div>
			<div class="y_mb_know" id="newspacelist">
				<!--{loop $newspacelist $key $value}-->
				  <dl class="clear" style="margin:3px 0 3px 0;">
					<dt><a href="space.php?uid=$value[uid]"><!--{avatar($value[uid],small)}--></a></dt>
					<dd>
					  <p <!--{if $ols[$value[uid]]}--> class="online_icon_p" title="在线"<!--{/if}-->>
					  <a href="space.php?uid=$value[uid]" title="{$_SN[$value[uid]]}">{$_SN[$value[uid]]}</a></p>
					  <p class="gray"><!--{date('n月j日',$value[dateline],1)}--></p>
					</dd>
				  </dl>
				<!--{/loop}-->
				<!--<p class="text_r"><a href="space.php?uid=$value[uid]&do=friend&view=visitor" title="">查看更多</a></p>-->
			</div>
		  </div>
		</div>
		<!--{/if}-->

		<!-- 最近来访 -->
		<!--{if $visitorlist}-->
		<div class="h_10" id="h_10_c"></div>
		<div class="box_b ">
		  <div class="box-outer">
			<div class="title">
			  <h4 id="a">最近来访</h4>
			  <span> <a href="javascript:;" class="kly_hide"></a> </span>
			</div>
			<div class="y_mb_know" id="visitorlist">
				<!--{loop $visitorlist $key $value}-->
				  <dl class="clear">
					<dt><a href="space.php?uid=$value[vuid]"><!--{avatar($value[vuid],small)}--></a></dt>
					<dd>
					  <p class="k_name"><a href="space.php?uid=$value[vuid]">{$_SN[$value[vuid]]}</a></p>
					  <p>{$value[company]}</p>
						<!--{if $value['att'] == '1'}-->
							<a href="cp.php?ac=attention&op=atuser_cancel&auid=$value[vuid]" title="取消关注该用户" id="at_user_$value[vuid]" onclick="ajaxmenu(event, this.id)" class="fol_this"><img alt="取消关注" src="./template/default/images/quxiaoguanzhu.png"></a>
						<!--{else}-->
							<a href="cp.php?ac=attention&op=atuser&auid=$value[vuid]" title="关注该用户" id="at_user_$value[vuid]" onclick="ajaxmenu(event, this.id)" class="fol_this"><img alt="加关注" src="./template/default/images/jiaguanzhu.png"></a>
						<!--{/if}--><!-- <a href="#" title="" class="hide_this"></a> -->
					</dd>
				  </dl>
				<!--{/loop}-->
				<p class="text_r"><a href="space.php?uid=$value[uid]&do=friend&view=visitor" title="">查看更多</a></p>
			</div>
		  </div>
		</div>
		<!--{/if}-->

		<!-- 可能感兴趣的公司 -->
		<!--{if $companyarr}-->
		<div class="h_10" id="h_10_c"></div>
			<div class="box_b" id='y_c_info'>
			  <div class="box-outer">
				<div class="title">
					<h4>可能感兴趣的公司</h4>
					<span> <a href="javascript:;" class="kly_hide"></a> </span>
				</div>
				<div class="list_a">
					<!--{loop $companyarr $key $value}-->
					<dl class="clear">
						<dt><a href="space.php?do=mtag&tagid=$value[tagid]" title=""><img src="$value[corporation_logo]"   alt="$value[tagname]" /></a></dt>
						<dd>
							<p class="list_a_tit"><a href="space.php?do=mtag&tagid=$value[tagid]">$value[tagname]</a></p>
							<p><a href="space.php?uid={$_SGLOBAL[supe_uid]}">{$_SGLOBAL[username]}</a></p>
						</dd>
					</dl>
					<!--{/loop}-->
					<p class="text_r"><a href="#" title="">查看更多</a></p>
				</div>
			  </div>
			</div>
		<!--{/if}-->

		<!-- 最新招聘信息 -->
		<!--{if $jobarr}-->
		<div class="h_10" id="h_10_j"></div>
			<div class="box_b" id="y_m_info">
			  <div class="box-outer">
				<div class="title">
				  <h4 id="b">最新招聘信息</h4>
				  <span> <a href="javascript:;" class="kly_hide"></a> </span>
				</div>
				<div class="y_mb_know_b">
				  <!--{loop $jobarr $key $value}-->
					<dl class="clear">
						<dd class="l">
							<p class="k_name">招聘职位：<span><a href="space.php?do=hr&fc=jb&id=$value[id]" title="" style="color: #5E5E5E;">$value[position]</a></span></p>
							<p style="margin-left:20px;">发布者：<span>$value[name]</span></p>
						</dd>
					</dl>
				  <!--{/loop}-->
				  <p class="text_r"><a href="space.php?do=hr" title="">查看更多</a></p>
				</div>
			  </div>
			</div>
		<!--{/if}-->

		<!-- 最新交易信息 -->
		<!--{if $cargoarr}-->
		<div class="h_10" id="h_10_i"></div>
			<div class="box_b" id="y_info">
			  <div class="box-outer">
				<div class="title">
				  <h4 >最新交易信息</h4>
				  <span> <a href="javascript:;" class="kly_hide"></a> </span>
				</div>
				<div class="y_mb_know_b ">
					<!--{loop $cargoarr $key $value}-->
					  <dl class="clear">
						<dd class="l">
						  <p class="k_name"><a href="space.php?do=business&id=$value[id]" title="">$value[title]</a></p>
						  <p style="margin-left:20px;">交易详情：<span><!--{if $value[remark]=="" }-->......<!--{else}-->$value[remark]<!--{/if}--></span></p>
						</dd>
					  </dl>
					<!--{/loop}-->
					<p class="text_r"><a href="space.php?do=business" title="">查看更多</a></p>
				</div>
			  </div>
			</div>
		<!--{/if}-->
		<div class="h_0"></div>
	</div>
</div>
<div class="h_10"></div>
<!-- footer begin -->


	
<!--{eval my_checkupdate();}-->
<!--{eval my_showgift();}-->
<!--{template footer}-->
<!--{/if}-->